package org.cuit.echo.seon.combat.imageload.proxy;

/**
 * @author Seon
 * @version 1.0
 * @since 2024-09-04
 */
public class ProxyImage implements Image {

    private final String filename;

    private RealImage realImage;

    public ProxyImage(String filename) {
        this.filename = filename;
    }

    @Override
    public void display() {
        if (realImage == null) {
            realImage = new RealImage(filename);
        }
        realImage.display();
    }
}
